// +---------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------

import BasicLayout from '@/components/main';

const pre = 'repair_';

export default {
  path: '/admin/repair',
  name: 'repair',
  header: 'repair',
  redirect: {
    name: `${pre}repair`,
  },
  component: BasicLayout,
  children: [
	{
	  path: 'index',
	  name: `${pre}index`,
	  meta: {
	    auth: ['admin-repair-index'],
	    title: '维修项目',
	  },
	  component: () => import('@/pages/repair/index'),  
	},
	{
	  path: 'store',
	  name: `${pre}store`,
	  meta: {
	    auth: ['admin-repair-store'],
	    title: '维修门店',
	  },
	  component: () => import('@/pages/repair/store'),  
	},
	{
	  path: 'add_store/:id?',
	  name: `${pre}addStore`,
	  meta: {
	    auth: ['admin-repair-add_store'],
	    title: '添加门店',
	  },
	  component: () => import('@/pages/repair/addStore/index'),
	},
  ],
};
